﻿@{
    Layout = null;
}

<script type="text/javascript">
    $().ready(function () {
        $("#complaintForm").validate({
            rules: {
                txt_OrderId: { required: true },
                com_ComplaintType: { required: true },
                txt_Title: { required: true },
                txt_Content: { required: true }
            },
            messages: {
                txt_OrderId: { required: "不能为空" },
                com_ComplaintType: { required: "不能为空" },
                txt_Title: { required: "不能为空" },
                txt_Content: { required: "不能为空" }
            }
        });
    });
</script>

<div class="AreaR2">
    <div class="box">
        <div class="box_1">
            <div class="userCenterBox boxCenterList clearfix" style="_height:1%;">

                <h5><span>客户投诉</span></h5>
                <div class="blank"></div>
                @using (Html.BeginForm("AddComplaint", "UserCenter", FormMethod.Post, new { name = "complaintForm", id = "complaintForm" }))
                {
                    @Html.AntiForgeryToken()
                    <table width="100%" border="0" cellpadding="5" cellspacing="1">
                        <tr>
                            <td width="28%" align="right" bgcolor="#FFFFFF">订单编号：</td>
                            <td width="72%" align="left" bgcolor="#FFFFFF">
                                <input name="txt_OrderId" type="text" class="inputBg" value="@ViewBag.OrderID" readonly />
                            </td>
                        </tr>
                        <tr>
                            <td width="28%" align="right" bgcolor="#FFFFFF">投诉类型： </td>
                            <td width="72%" align="left" bgcolor="#FFFFFF">
                                <select name="com_ComplaintType">
                                    <option value="1" selected>商品质量</option>
                                    <option value="2">订单问题</option>
                                    <option value="3">送货问题</option>
                                    <option value="4">服务质量</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td width="28%" align="right" bgcolor="#FFFFFF">投诉标题： </td>
                            <td width="72%" align="left" bgcolor="#FFFFFF">
                                <input name="txt_Title" type="text" class="inputBg required" value="" maxlength="50" />
                                <span style="color:#FF0000"> *</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="28%" align="right" bgcolor="#FFFFFF">投诉内容：</td>
                            <td width="72%" align="left" bgcolor="#FFFFFF">
                                <textarea name="txt_Content" cols="49" rows="6"></textarea>
                                <span style="color:#FF0000"> *</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="28%" align="right" bgcolor="#FFFFFF"></td>
                            <td>
                                <input name="submit" type="submit" value="提交投诉" class="bnt_blue_1" style="border:none;float:left" />
                            </td>
                        </tr>
                        <tr>
                            <td><span style="color:red">@TempData["ErrorMsg"] </span></td>
                        </tr>
                    </table>
                }
            </div>
        </div>
    </div>
</div>
<div class="blank"></div>
